<%@ include file="/common/taglibs.jsp"%>

<head>
    <title><fmt:message key="infoList.title"/></title>
    <meta name="heading" content="<fmt:message key='infoList.heading'/>"/>
    <meta name="menu" content="InfoMenu"/>
</head>

<div id="search">
<form method="get" action="${ctx}/infoes" id="searchForm">
    <input type="text" size="20" name="q" id="query" value="${param.q}"
           placeholder="Enter search terms..."/>
    <input type="submit" value="<fmt:message key="button.search"/>"/>
</form>
</div>

<input type="button" style="margin-right: 5px" class="button" onclick="location.href='<c:url value="/editInfo"/>'" value="<fmt:message key="button.add"/>"/>
<input type="button" class="button" onclick="location.href='<c:url value="/mainMenu"/>'" value="<fmt:message key="button.done"/>"/>

<display:table name="infoes" class="table" requestURI="" id="infoList" export="true" pagesize="25">
    <display:column property="id" sortable="true" href="editInfo" media="html"
        paramId="id" paramProperty="id" titleKey="info.id"/>
    <display:column property="id" media="csv excel xml pdf" titleKey="info.id"/>
    <display:column property="auditAdminId" sortable="true" titleKey="info.auditAdminId"/>
    <display:column sortProperty="auditFlag" sortable="true" titleKey="info.auditFlag">
        <input type="checkbox" disabled="disabled" <c:if test="${infoList.auditFlag}">checked="checked"</c:if>/>
    </display:column>
    <display:column property="cityId" sortable="true" titleKey="info.cityId"/>
    <display:column property="contact" sortable="true" titleKey="info.contact"/>
    <display:column property="content" sortable="true" titleKey="info.content"/>
    <display:column property="createTime" sortable="true" titleKey="info.createTime"/>
    <display:column property="editPassword" sortable="true" titleKey="info.editPassword"/>
    <display:column property="ip" sortable="true" titleKey="info.ip"/>
    <display:column property="keywords" sortable="true" titleKey="info.keywords"/>
    <display:column property="money" sortable="true" titleKey="info.money"/>
    <display:column sortProperty="personalFlag" sortable="true" titleKey="info.personalFlag">
        <input type="checkbox" disabled="disabled" <c:if test="${infoList.personalFlag}">checked="checked"</c:if>/>
    </display:column>
    <display:column sortProperty="picFlag" sortable="true" titleKey="info.picFlag">
        <input type="checkbox" disabled="disabled" <c:if test="${infoList.picFlag}">checked="checked"</c:if>/>
    </display:column>
    <display:column property="provinceId" sortable="true" titleKey="info.provinceId"/>
    <display:column property="qq" sortable="true" titleKey="info.qq"/>
    <display:column sortProperty="sellFlag" sortable="true" titleKey="info.sellFlag">
        <input type="checkbox" disabled="disabled" <c:if test="${infoList.sellFlag}">checked="checked"</c:if>/>
    </display:column>
    <display:column property="tel" sortable="true" titleKey="info.tel"/>
    <display:column property="title" sortable="true" titleKey="info.title"/>
    <display:column property="typeId" sortable="true" titleKey="info.typeId"/>
    <display:column property="uid" sortable="true" titleKey="info.uid"/>
    <display:column property="updateTime" sortable="true" titleKey="info.updateTime"/>
    <display:column property="visitNum" sortable="true" titleKey="info.visitNum"/>

    <display:setProperty name="paging.banner.item_name"><fmt:message key="infoList.info"/></display:setProperty>
    <display:setProperty name="paging.banner.items_name"><fmt:message key="infoList.infoes"/></display:setProperty>

    <display:setProperty name="export.excel.filename"><fmt:message key="infoList.title"/>.xls</display:setProperty>
    <display:setProperty name="export.csv.filename"><fmt:message key="infoList.title"/>.csv</display:setProperty>
    <display:setProperty name="export.pdf.filename"><fmt:message key="infoList.title"/>.pdf</display:setProperty>
</display:table>

<input type="button" style="margin-right: 5px" class="button" onclick="location.href='<c:url value="/editInfo"/>'" value="<fmt:message key="button.add"/>"/>
<input type="button" class="button" onclick="location.href='<c:url value="/mainMenu"/>'" value="<fmt:message key="button.done"/>"/>

<script type="text/javascript">
    highlightTableRows("infoList");
</script>
